package main

import "fmt"

func add(a int) (sum int) {
	if a == 1 {
		return 1
	} else {
		return a + add(a-1)
	}
}

func printA(a int) {
	if a == 1 {
		fmt.Println("a is:", a)
		return
	}
	printA(a - 1)
	fmt.Println("a is:", a)
}
func main() {
	fmt.Println("1+2+3+4+...+100=", add(100))
	printA(5)
}
